package com.cn.wanxi.dao;

import com.cn.wanxi.model.UserModel;

import java.util.List;

public interface IUserDao {
    int addUser(UserModel userModel);
    int updateUser(UserModel userModel);
    int deleteUser(int id);
    UserModel getUser(int id);
    List<UserModel> getUserList();
    UserModel getUserByUsername(String username);

    UserModel login(UserModel userModel);
}
